package cn.java86.myschool.service;

import cn.java86.myschool.entity.Page;
import cn.java86.myschool.entity.Student;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface IStudentService {
    public int add(Student s);
    public int update(Student s);
    public int del(long stuno);
    public Student get(long stuno);
    //删除多个学生
    public int dels(@Param("ids") long []ids);
    //分页查询服务
    public Page<Student> paging(int pageNo,
                                @Param("pageSize")int pageSize,
                                @Param("sname")String sname,
                                @Param("qq")String qq,
                                @Param("phone")String phone,
                                @Param("enterStart") Date enterStart,
                                @Param("enterEnd")Date enterEnd);

    /**
     * 检查手机号是否存在
     * @param phone
     * @return
     */
    public boolean checkPhone(String phone);
}
